package com.hoshiicloud.market.service.market;

import com.hoshiicloud.goods.entity.category.SalesCategory;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

/**
 * <p>
 * 营销类目 服务类
 * </p>
 *
 * @author zhangshuhu
 * @since 2019-06-17
 */
public interface SalesCategoryService extends IService<SalesCategory> {

    SalesCategory getById(Long id);

    boolean save(SalesCategory entity);

    boolean updateById(SalesCategory entity);

    IPage<SalesCategory> page(IPage<SalesCategory> page, Wrapper<SalesCategory> queryWrapper);

    boolean deleteById(SalesCategory entity);

    List<SalesCategory> getByIds(List<Long> ids,String key);
}
